package com.jeebey.mybatis.annotation;

/** 主键生成策略*/
public enum GeneratedStrategy {
	/**IDENTITY, TABLE, SEQUENCE, AUTO 暂未实现*/
	//GenerationType.IDENTITY :MySQL, SQL Server, DB2, Derby, Sybase, PostgreSQL
	//GenerationType.SEQUENCE :Oracle、PostgreSQL、DB2 
	//GenerationType.TABLE    : 某表 最大ID
	//GenerationType.Auto	  :
	GENERATOR,UUID,SHORTUUID,JDBC,IDENTITY,TABLE,SEQUENCE,AUTO ;
	
	public static GeneratedStrategy of(String name) {
		return GeneratedStrategy.valueOf(name);
	}

}

